import os
from  toolsSrc.status.status import Status
from torqueSrc.torqueOnl.initialData import initialData
from torqueSrc.torqueOnl.cleanProcess import cleanProcess
from torqueSrc.torqueOnl.lambdaProcess import lambdaProcess
from torqueSrc.torqueOnl.lambdaCompareProcess import lambdaCompareProcess
from torqueSrc.torqueOnl.torqCoefAdjProcess import torqCoefAdjProcess
from torqueSrc.tools.toFile import toTorqUploadCsv


@Status.changeDBStatus('torque',2, 1)
@Status.changeStatus(2, 1)
def torqueOnl():
    initialData()
    cleanProcess()
    lambdaProcess()
    lambdaCompareProcess()
    torqCoefAdjProcess()
    toTorqUploadCsv()


if __name__ == '__main__':
    torqueOnl()
